﻿namespace FFF.Test.Application.Repositories.FW
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Abp.Domain.Repositories;
    using Abp.EntityFrameworkCore;
    using Abp.ObjectMapping;
    using FFF.Test.DataAccess.Framework;
    using FFF.Test.Application.Repositories.FW;
    using FFF.Test.Entity.FW;
    using FFF.Test.Entity.FW.Dto;
    using FFF.Test.Entity.FW.View;
    using FFF.Test.Application.PublicService.AppService.TreeGrid;

    /// <summary>
    /// 登陆日志表仓储接口
    /// </summary>
    public interface IFWLoginLogRepository :
        IRepository<FWLoginLogEntity,
        Guid>, IRepositoriesBase<FWLoginLogEntity, Guid, FWLoginLogCreateInputDto, FWLoginLogUpdateInputDto, FWLoginLogDto, ViewFWLoginLog, ViewFWLoginLog>
    {
        /// <summary>
        /// 登陆错误的次数
        /// </summary>
        /// <param name="userCode">用户登陆的code</param>
        /// <param name="ip">用户的IO</param>
        /// <returns>返回登陆错误的次数</returns>
        Task<int> GetErrorCount(string userCode, string ip);
    }
}
